package com.bjsxt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjsxt.domain.SysPrivilege;

import java.util.List;
import java.util.Set;


/**
 * @Description:  ${description}
 * @ClassName:      SysPrivilegeMapper
 * @Author:  chenyu
 * @Date:    2025/3/7 9:43
 */
 
public interface SysPrivilegeMapper extends BaseMapper<SysPrivilege> {

    /**
     * 使用角色的ID 查询权限的id
     * @param roleId
     * @return
     */
    Set<Long> getPrivilegesByRoleId(Long roleId);
}